package com.shuoyue.ycgk.base;



import com.shuoyue.ycgk.net.gsondefaultadapter.Optional;

import lombok.Data;

/**
 * @author Forty'7 2019.8.5
 * @Title: BaseResult
 */
@Data
public class BaseResult<T> {
    private T data;
    private int code;//200:成功
    private String message;
    public Optional<T> transform(){
        return new Optional<>(data);
    }
}
